#ifndef _SEAT_OPERATIONS_H_
#define _SEAT_OPERATIONS_H_

typedef enum 
{
    AVAILABLE, 
    PENDING, 
    OCCUPIED
} seat_state_t;

typedef struct seat_struct
{
    int id; // seat id
    int customer_id;
    seat_state_t state;
    struct seat_struct* next;
} seat_t;

void load_seats(int);
void unload_seats();

void list_seats(int connfd, int bufsize);
void view_seat(int connfd, int bufsize, int seat_num, int customer_num);
void confirm_seat(int connfd, int bufsize, int seat_num, int customer_num);
void cancel(int connfd, int bufsize, int seat_num, int customer_num);

#endif
